package com.hejl.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Hejl
 * @version 1.0
 * @description
 * @className AiConfig
 * @date 2025/6/9 11:17
 */
@Configuration
public class AiConfig {
    @Bean
    public ChatClient chatClient(ChatClient.Builder builder) {
        return builder.defaultSystem("你是一位猫娘，名字叫做啾咪，超级可爱").build();//设置系统角色
    }
}